package org.jeecg.modules.demo.hd.service;

import org.jeecg.modules.demo.hd.entity.AppMyProjectClickdetail;
import org.jeecg.modules.demo.hd.entity.AppUserGoldMain;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @Description: app_user_gold_main
 * @Author: jeecg-boot
 * @Date: 2025-02-04
 * @Version: V1.0
 */
public interface IAppUserGoldMainService extends IService<AppUserGoldMain> {

    double queryCurrentGold();

    boolean updateCurrentGold(double goldNum);

    double queryUserGold(String userId);

    /**
     * 更新用户金币数量
     *
     * @param model
     * @param goldNum
     * @return
     */
    boolean updateGoldMain(AppMyProjectClickdetail model, Integer goldNum);

    boolean updateGoldMain(String userId, Integer goldNum);


    void clean();
}
